package com.ruoyi.mine.mapper;


import com.ruoyi.mine.dto.ProductionInfoUpdateDTO;
import com.ruoyi.mine.dto.ProductionUploadDTO;
import com.ruoyi.mine.pojo.Production;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ProductionMapper {


    void upload(ProductionUploadDTO production);

    void delete(Integer id);

    void update(ProductionInfoUpdateDTO productionInfoUpdateDTO);

    List<Production> search(@Param("mineId") String mineId,
                            @Param("layerName") String layerName,
                            @Param("produceType") String produceType,
                            @Param("startTime") LocalDate startTime,
                            @Param("endTime") LocalDate endTime,
                            @Param("fileType") String fileType);

    Integer getProductionCount(Integer productionId);

    Production findById(Integer id);
}
